<?php
header('Content-type:textml;charset=utf-8');

$link = myscali_connect('localhost','root','123456');

if(!$link){

    die('数据连接失败!'.myscali_error());

}
$where='';
if(isset($_GET['keyword'])) {
    $keyword = $_GET['keyword'];
    $keyword = mysqli_real_escape_string($keyword);
    $where = "where e_name like '%$keyword%'";
}
$sql="select*from emp_info $where";
$result=mysqli_query($link,$sql);
$emp_info=array();
while($row = myscali_fetch_assoc($res)){
    $emp_info[]=$row;

}
define('APP','itcase');
require './list_html.php';